-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AAS next #1052
AAS next #1052
Conversation
After a talk with @Kaz040 and @danielpeintner, we have realized that TD -> AID will have some limitations at the moment. AID do not support multiple forms per affordance at the moment so we need to be selective. The proposal is for now to do the following: If a TD has multiple forms, we follow the following implementation steps and give options to the developer:
I think that this form picking option can be almost put into a more generic place since I could also think of a WoT consumer needing a logic to pick such a form. |
Note: examples AID_v03.json and AID_v03_counter.json are no longer compliant -> skipped for now
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1052 +/- ##
==========================================
- Coverage 75.63% 75.28% -0.36%
==========================================
Files 80 80
Lines 15324 16070 +746
Branches 1460 1503 +43
==========================================
+ Hits 11591 12099 +508
- Misses 3699 3932 +233
- Partials 34 39 +5
☔ View full report in Codecov by Sentry. |
TODO: properties etc
it does some basic checking
Some more questions w.r.t. alignment between TD and AID arises about
--> seems inconsistent |
The PR is read for review. It allows for
Please have a look @egekorkan @sebastiankb @Kaz040 and others. The important API calls are in the following lines. node-wot/packages/td-tools/src/util/asset-interface-description.ts Lines 43 to 188 in c06c67c
|
Note: leave out asset-interface-description.ts because of eclipse-thingweb#1052
…ullChecks (#1077) * chore: enable eslint/strict-boolean-expressions and strictNullChecks * fix package examples * fix package td-tools Note: leave out asset-interface-description.ts because of #1052 * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * fix: issue issue introduced by commenting * move eslint settings to td-tools package only * fix: lint errors for AID * refactor: revert changes in package "examples" * refactor: revert "!== undefined" to "!= null" OR "=== undefined" to "== null" * refactor: revert some changes proposed by @JKRhb leads to different results * fix: wrong conversion * refactor: missing one undefined change * fix: add proper boolean check * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * refactor: further simplifications * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * refactor: simplify data.version.model check --------- Co-authored-by: Jan Romann <[email protected]> Co-authored-by: Cristiano Aguzzi <[email protected]>
…ullChecks (eclipse-thingweb#1077) * chore: enable eslint/strict-boolean-expressions and strictNullChecks * fix package examples * fix package td-tools Note: leave out asset-interface-description.ts because of eclipse-thingweb#1052 * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Jan Romann <[email protected]> * fix: issue issue introduced by commenting * move eslint settings to td-tools package only * fix: lint errors for AID * refactor: revert changes in package "examples" * refactor: revert "!== undefined" to "!= null" OR "=== undefined" to "== null" * refactor: revert some changes proposed by @JKRhb leads to different results * fix: wrong conversion * refactor: missing one undefined change * fix: add proper boolean check * Update packages/td-tools/src/thing-model-helpers.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * Update packages/td-tools/src/util/asset-interface-description.ts Co-authored-by: Cristiano Aguzzi <[email protected]> * refactor: further simplifications * Update packages/td-tools/src/td-parser.ts Co-authored-by: Jan Romann <[email protected]> * refactor: simplify data.version.model check --------- Co-authored-by: Jan Romann <[email protected]> Co-authored-by: Cristiano Aguzzi <[email protected]>
MAY include